package com.itnoob.demo;

/**
 * @author zhoujun
 * @date 2025/3/21 21:46
 */
public class ConcreteCoffee {

    private String name;

    private Double price;

    private String cup;

    private String temperature;

    public ConcreteCoffee(String name, Double price, String cup, String temperature) {
        this.name = name;
        this.price = price;
        this.cup = cup;
        this.temperature = temperature;
        System.out.println("创建了"+name + "实例");
    }


    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public String getCup() {
        return cup;
    }

    public void setCup(String cup) {
        this.cup = cup;
    }

    public String getTemperature() {
        return temperature;
    }

    public void setTemperature(String temperature) {
        this.temperature = temperature;
    }

    public void display(){
        System.out.println("Coffee:" + name + ",Price: " + price + ",Style: " + cup +","+temperature);
    }
}
